void* hw_jpeg_decoder_init();

int hw_jpeg_decoder_set_src(void* jpegInst, char* image, int flen);
int hw_jpeg_decoder_getsize(void* jpegInst,int *w, int* h);
int hw_jpeg_decoder_on_frame(void* jpegInst,void *rgba);

void hw_jpeg_decoder_deinit(void* jpegInst);
